package main;

/**
 * @author MAdriana
 */

public class RefCountList
{
	private int[] refNumber;
	
	public RefCountList(int n)
	{	
	    refNumber = new int[n];
	    
	    for(int i=0;i<n;i++)
	       refNumber[i]=0;
	}
	
	public void modifyRefCList(int n, int v)
	{
	    refNumber[n]=v;		
	}
	
	public int getPositionRefCList(int n)
	{
		return refNumber[n];		
	}
		
	public String toString()
	{
		String str = new String();
		int n=refNumber.length;
		str = "RefCountList: "+n+": ";
		for(int i=0;i<n;i++)
		  str += " , "+ refNumber[i];

		return str;	
	}
}
